package org.easy.tool.mapper;

import org.apache.ibatis.annotations.Param;
import org.easy.tool.entity.ProblemKnowledge;
import org.easy.tool.entity.UserDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Valley
 * @since 2025-07-19 18:57:11
 */
@Repository
public interface UserDetailMapper extends BaseMapper<UserDetail> {

    /**
     * 根据题目id涉及的所有关联知识点
     */
    List<UserDetail> getUserDetailListByType(@Param("userId") String userId, @Param("type") String type);

    UserDetail getUserDetail(@Param("userId") String userId, @Param("type") String type, @Param("detailId") String detailId);

}
